package cn.l1.l002;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		String character = cin.next();
		int sum = 1;
		int i = 3;
		while(sum <= n) {
			sum = sum + 2*i;
			i = i+2;
		}
		sum = sum - 2*(i-2);
		i = i - 4;
		int j = i;
		while(j>=-i) {
			if(j != 1) {
				for(int k = 0; k < (i - Math.abs(j))/2; k++) {
					System.out.print(" ");
				}
				for(int k = 0; k < Math.abs(j); k++) {
					System.out.print(character);
				}
				System.out.println();
			}
			j = j - 2;
		}
		System.out.println(n - sum);
		cin.close();
	}
}
